Release 10.1A: OpenEdge Development:
Messaging and ESB


Subscribing to a topic

In the Pub/Sub domain, applications subscribe to topics of interest. The application calls the subscribe procedure in pubsubsession.p or jmssession.p with the topic name and a handle to the Message Consumer object. The application implements a message-handling routine for handling the incoming messages, as well as a Message Consumer object that contains the message handler and provides context to the application when it processes messages.

Durable subscriptions

A subscriber typically receives messages while it is active. Some applications might require that a subscriber receives all messages even if the subscriber is inactive when the messages are published. In order to meet this requirement, you can create a durable subscriber. A durable subscription guarantees message delivery. A durable subscription is registered with the SonicMQ Broker with a unique identity; the broker retains the subscription’s messages until they are received by the application or until they expire. The application can pass a JMS properties selector expression to the subscribe procedure to specify which messages the subscriber wants to receive. The application can also specify whether it wants to receive its own published messages. Use the cancelDurableSubscription procedure to cancel a durable subscription.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095